
package es.mimuu.generator.util;

import org.eclipse.emf.mwe.core.WorkflowContext;
import org.eclipse.emf.mwe.core.WorkflowInterruptedException;
import org.eclipse.emf.mwe.core.issues.Issues;
import org.eclipse.emf.mwe.core.monitor.ProgressMonitor;

/**
 * Fixes the problem with reporting of issues.
 */
public class CheckComponent extends org.eclipse.xtend.check.CheckComponent {
    @Override
    protected void invokeInternal2(final WorkflowContext ctx, final ProgressMonitor monitor, final Issues issues) {
        try {
            super.invokeInternal2(ctx, monitor, issues);
        } catch (WorkflowInterruptedException e) {
            throw new WorkflowInterruptedException(e.getMessage() + issues);
        }
    }
}
